// 持久层负责链接数据库
const { Sequelize } = require("sequelize")

// 创建数据库链接
const sequelize = new Sequelize(process.env.DB_NAME, process.env.DB_USER, process.env.DB_PASS, {
    host: process.env.DB_HOST,
    dialect: 'mysql',
    logging:false
});

module.exports = sequelize